package com.xlh.dto;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import lombok.Data;

/**
 * @author zhr 2019/6/26
 */
@Data
public class SystemProblemReportExcelDTO {
    private String userName;
    private String roleName;
    private String content;
    private String time;

    public SystemProblemReportExcelDTO(SystemProblemReportDTO dto) {
        this.userName = dto.getUserName();
        this.roleName = dto.getRoleName();
        this.content = dto.getContent();
        this.time = DateUtil.format(dto.getTime(), DatePattern.NORM_DATETIME_PATTERN);
    }
}
